package com.smxy.daydayup.mapper;

import com.smxy.daydayup.pojo.College;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Mapper
public interface CollegeMapper {
    int deleteByPrimaryKey(Long collegeId);

    int insert(College record);

    int insertSelective(College record);

    College selectByPrimaryKey(Long collegeId);

    int updateByPrimaryKeySelective(College record);

    int updateByPrimaryKey(College record);

    //通过学院编号查询学院名称,学校id限定查询范围
    String selectNameByNumber(@Param("collegeNumber") String collegeNumber,
                              @Param("schoolId") Long schoolId);
}